import request from '@/utils/request'

export function fetchList(query) {
  return request({
    url: '/admin/stores',
    method: 'get',
    params: query
  })
}

export function show(id) {
  return request({
    url: '/admin/stores/' + id,
    method: 'get'
  })
}

export function create(data) {
  return request({
    url: '/admin/stores/store',
    method: 'post',
    data: data
  })
}

export function storeList(query) {
  return request({
    url: '/admin/stores/checklist',
    method: 'get',
    params: query
  })
}

export function checkPassStore(data) {
  return request({
    url: '/admin/stores/check',
    method: 'post',
    data: data
  })
}
